//
//  MyCollectionViewCell.m
//  代码布局
//
//  Created by iOS on 16/7/20.
//  Copyright © 2016年 iOS. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.imageview = [[UIImageView alloc]init];
        [self addSubview:self.imageview];
        [self.imageview makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.top);
            make.left.equalTo(self.left);
            make.bottom.equalTo(self.bottom);
            make.right.equalTo(self.right);
        }];
    }
    return self;
}
@end
